/************************************************************************
 *				SRLOS Team CopyRight
 *@file		timer.h
 *@author	bloceanc
 *@date		7/22/2010
 *@note		timer managerment
 ************************************************************************/

#ifndef	_K_TIMER_H_
#define	_K_TIMER_H_

/*
 *	Comments:
 * 		we use for timers.one is used to scheudle task;one is used for all timer used in system;
 * one is used to control DMA;And the last one is used for other I/O devices.
 */

// timer descriptor
typedef	struct __timer_descr
{
	long long time;	/* value of timer frequence, in millionseconds */
	long long current_rtc;	/* current rtc sub time */	
	k_process	*owner;	/* the owner of timer, which we will send single */
	struct __timer_descr	*next;	/* next timer descriptor */
	struct __timer_descr	*prev;	/* previous timer descriptor */
}k_timer;

#endif	/* _K_TIMER_H_ */
